import json
from config import BASE_PATH


def read_json_data(file_name):
    with open(file_name, "r", encoding="utf-8") as f:
        data = json.load(f)
        data_list = []
        for data_dict in data:
            data_values = tuple(data_dict.values())
            data_list.append(data_values)
        return data_list


if __name__ == '__main__':
    file_name = BASE_PATH + "/data/ihrm_login_data.json"
    print(read_json_data(file_name))
